package com.mybatis.simple.mapper;

import com.mybatis.simple.pojo.TbUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author 咕唧
 * @Date 2022/5/16 20:56
 * @Version 1.0
 */
public interface UserMapper {
    TbUser findById(Long id);

    TbUser findByNameAndPassword(Map map);

    TbUser findWithNameAndPassword(@Param("name") String name,@Param("pwd") String password);

    List<TbUser> findByNameLike(String nameLike);

    TbUser findByNameAndPasswordWith(TbUser user);

    List<TbUser> findByMulti(TbUser user);

    List<TbUser> findByIds(@Param("ids") List<Long> ids);
}
